
/**地图数据示例 */
export default class MapDataTemplate {
    private constructor() { }
    public static getData(): any {
        return {
            map0: {
                name: "map0",
                //地图范围
                scope: { xMin: 0, xMax: 0, zMin: 0, zMax: 0 },
                //所有多边形碰撞体的顶点坐标
                collider: [],
                playerPos: { x: 0, y: 0, z: 0 },
                //传送门坐标
                portalPos: [],
                //敌人出现位置
                enemyPos: [{ "x": -13.58, "y": 0, "z": 7.22 },],
                //静态障碍物
                staticBarriers: [{ n: "muxiang", p: { x: 10, y: 0, z: 0 }, e: 0, s: 1, },],
                //可撞开障碍物
                dynamicBarriers: [{ "n": "muxiang", "p": { "x": -3.35, "y": 0, "z": -0.07 }, "e": 0, "s": 1 },],
                //可破坏障碍物
                breakBarriers: [],
            },
            map1: { name: "map1", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": 2.87, "y": 0, "z": 5.71 }, { "x": -11.87, "y": 0, "z": -5.81 }], "enemyPos": [{ "x": -13.58, "y": 0, "z": 7.22 }, { "x": -7.55, "y": 0, "z": -4.3 }, { "x": -9.33, "y": 0, "z": -0.42 }, { "x": 14.55, "y": 0, "z": 2.29 }, { "x": 4.07, "y": 0, "z": 16.67 }, { "x": 6.01, "y": 0, "z": 9.63 }, { "x": -3.65, "y": 0, "z": 3.94 }, { "x": 8.7, "y": 0, "z": -4.09 }, { "x": 1.06, "y": 0, "z": -5.71 }, { "x": 8.23, "y": 0, "z": 4.11 }, { "x": -9.59, "y": 0, "z": 3.92 }, { "x": -4.83, "y": 0, "z": -9.62 }, { "x": -0.4, "y": 0, "z": -15.52 }, { "x": 7.33, "y": 0, "z": -11.75 }, { "x": 13.43, "y": 0, "z": -3.71 }, { "x": 4.5, "y": 0, "z": -1.73 }, { "x": 0.74, "y": 0, "z": 8.89 }, { "x": 2.01, "y": 0, "z": 3.34 }, { "x": -1.86, "y": 0, "z": 0.43 }, { "x": -5.06, "y": 0, "z": 10.38 }], "collider": [[16.68, -1.12, 14.69, -1.12, 14.69, 0.88, 16.68, 0.88], [16.68, 6.89, 14.69, 6.89, 14.69, 14.85], [18.6, 0.93, 16.6, 0.93, 16.6, 6.84], [14.64, 14.85, 12.65, 14.85, 12.65, 16.85], [12.48, 16.93, 8.61, 16.93, 8.61, 18.93], [8.66, 18.83, 0.69, 18.83, 0.69, 20.83], [4.73, 20.72, -3.25, 20.72, -3.25, 22.72], [-3.28, 18.88, -7.19, 18.88, -3.27, 20.88], [-7.27, 14.86, -9.17, 14.86, -7.27, 18.77], [-9.35, 12.83, -13.28, 12.83, -9.35, 14.77], [-13.32, 10.84, -17.25, 10.84, -13.32, 12.77], [-17.31, 4.87, -19.35, 4.87, -17.31, 10.8], [-19.27, 2.85, -21.31, 2.85, -19.27, 4.87], [-21.14, -3.21, -23.17, -3.21, -21.14, 2.85], [-19.29, -9.06, -21.32, -3.19, -19.29, -3], [-17.29, -13.1, -19.32, -9.09, -17.29, -9.14], [-15.27, -15.14, -17.27, -13.14, -15.27, -13.14], [-13.29, -17.2, -15.29, -15.2, -13.29, -15.2], [-9.34, -19.14, -13.23, -17.14, -9.34, -17.14], [-7.25, -21.07, -11.14, -19.07, -7.25, -19.07], [-7.31, -19.03, -7.31, -17.03, -5.31, -17.03], [-5.25, -17.09, -5.25, -15.09, 0.68, -15.09, 0.68, -21.13], [0.71, -23.11, 0.71, -21.11, 2.71, -21.11], [2.72, -21.14, 2.72, -19.14, 8.63, -19.14], [8.65, -19.11, 8.65, -17.11, 12.68, -17.11], [12.66, -17.12, 12.66, -15.12, 14.66, -15.12], [14.66, -15.19, 14.66, -7.13, 16.66, -7.13], [16.58, -7.01, 16.58, -1.19, 18.58, -1.19]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "tree2", "p": { "x": 8.25, "y": 0, "z": 6.87 }, "e": 0, "s": 1 }, { "n": "tree2", "p": { "x": 8.18, "y": 0, "z": -7.82 }, "e": 0, "s": 1 }, { "n": "tree3", "p": { "x": -3.21, "y": 0, "z": -3.94 }, "e": 0, "s": 1 }, { "n": "tree3", "p": { "x": -6.62, "y": 0, "z": 8.99 }, "e": 0, "s": 1 }], "scope": { "xMin": -23.17, "xMax": 18.6, "zMin": -22.72, "zMax": 23.11 } },
            map2: { name: "map2", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": -7.84, "y": 0, "z": 0.6 }, { "x": 11.37, "y": 0, "z": -2.59 }], "enemyPos": [{ "x": 2.86, "y": 0, "z": 16.25 }, { "x": 8.78, "y": 0, "z": 12.29 }, { "x": 1.05, "y": 0, "z": 9.27 }, { "x": 12.78, "y": 0, "z": 5.85 }, { "x": -14.46, "y": 0, "z": 7.57 }, { "x": -5.56, "y": 0, "z": 4.34 }, { "x": 6.26, "y": 0, "z": 1.79 }, { "x": -14.7, "y": 0, "z": -0.84 }, { "x": -6.04, "y": 0, "z": -3.64 }, { "x": -6.86, "y": 0, "z": 12.2 }, { "x": -9.04, "y": 0, "z": -8.49 }, { "x": 0, "y": 0, "z": -1.01 }, { "x": -1.47, "y": 0, "z": 6.66 }, { "x": 6.42, "y": 0, "z": 7.6 }, { "x": 11.83, "y": 0, "z": -8.28 }, { "x": -1.85, "y": 0, "z": -7.3 }, { "x": 4.26, "y": 0, "z": -14.46 }, { "x": 5.2, "y": 0, "z": -5.55 }, { "x": -1.61, "y": 0, "z": -17.19 }], "collider": [[16.68, -1.12, 14.69, -1.12, 14.69, 0.88, 16.68, 0.88], [16.68, 6.89, 14.69, 6.89, 14.69, 14.85], [18.6, 0.93, 16.6, 0.93, 16.6, 6.84], [14.64, 14.85, 12.65, 14.85, 12.65, 16.85], [12.48, 16.93, 8.61, 16.93, 8.61, 18.93], [8.66, 18.83, 0.69, 18.83, 0.69, 20.83], [4.73, 20.72, -3.25, 20.72, -3.25, 22.72], [-3.28, 18.88, -7.19, 18.88, -3.27, 20.88], [-7.27, 14.86, -9.17, 14.86, -7.27, 18.77], [-9.35, 12.83, -13.28, 12.83, -9.35, 14.77], [-13.32, 10.84, -17.25, 10.84, -13.32, 12.77], [-17.31, 4.87, -19.35, 4.87, -17.31, 10.8], [-19.27, 2.85, -21.31, 2.85, -19.27, 4.87], [-21.14, -3.21, -23.17, -3.21, -21.14, 2.85], [-19.29, -9.06, -21.32, -3.19, -19.29, -3], [-17.29, -13.1, -19.32, -9.09, -17.29, -9.14], [-15.27, -15.14, -17.27, -13.14, -15.27, -13.14], [-13.29, -17.2, -15.29, -15.2, -13.29, -15.2], [-9.34, -19.14, -13.23, -17.14, -9.34, -17.14], [-7.25, -21.07, -11.14, -19.07, -7.25, -19.07], [-7.31, -19.03, -7.31, -17.03, -5.31, -17.03], [-5.25, -17.09, -5.25, -15.09, 0.68, -15.09, 0.68, -21.13], [0.71, -23.11, 0.71, -21.11, 2.71, -21.11], [2.72, -21.14, 2.72, -19.14, 8.63, -19.14], [8.65, -19.11, 8.65, -17.11, 12.68, -17.11], [12.66, -17.12, 12.66, -15.12, 14.66, -15.12], [14.66, -15.19, 14.66, -7.13, 16.66, -7.13], [16.58, -7.01, 16.58, -1.19, 18.58, -1.19]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "tree4", "p": { "x": 2.11, "y": 0, "z": 3.37 }, "e": 0, "s": 1 }, { "n": "tree4", "p": { "x": -4.46, "y": 0, "z": 10.09 }, "e": 0, "s": 1 }, { "n": "tree5", "p": { "x": 9.27, "y": 0, "z": 4.45 }, "e": 0, "s": 1 }, { "n": "tree5", "p": { "x": -10.67, "y": 0, "z": -4.14 }, "e": 0, "s": 1 }], "scope": { "xMin": -23.17, "xMax": 18.6, "zMin": -22.72, "zMax": 23.11 } },
            map3: { name: "map3", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": 14, "y": 0, "z": 5.88 }, { "x": -9.94, "y": 0, "z": -10.9 }], "enemyPos": [{ "x": -17.23, "y": 0, "z": 15.81 }, { "x": -9.71, "y": 0, "z": 9.62 }, { "x": 19.63, "y": 0, "z": -12.55 }, { "x": -5.99, "y": 0, "z": 17.28 }, { "x": 5.62, "y": 0, "z": 17.39 }, { "x": -15.06, "y": 0, "z": 3.66 }, { "x": -8.17, "y": 0, "z": -8.85 }, { "x": -1.52, "y": 0, "z": 11.35 }, { "x": 11.25, "y": 0, "z": 4.08 }, { "x": 8.41, "y": 0, "z": 8.88 }, { "x": -24.01, "y": 0, "z": 2.03 }, { "x": -17.84, "y": 0, "z": -4.28 }, { "x": -20.16, "y": 0, "z": -12.52 }, { "x": 10.94, "y": 0, "z": -12.67 }, { "x": 3.34, "y": 0, "z": -6.04 }, { "x": 13.87, "y": 0, "z": -5.37 }, { "x": 22.11, "y": 0, "z": -2.99 }, { "x": -12.09, "y": 0, "z": -19.74 }, { "x": 18.52, "y": 0, "z": 8.01 }, { "x": -0.06, "y": 0, "z": -19.52 }, { "x": 6.94, "y": 0, "z": -19.52 }], "collider": [[-13.84, -25.33, -2, -28.33, -2, -25.33], [-1.92, -28.33, -1.92, -31.33, 3.97, -28.33], [3.98, -25.37, 3.98, -28.37, 9.87, -25.37], [13.03, -16.31, 13.03, -19.31, 18.93, -16.31], [18.99, -13.33, 18.99, -16.34, 24.88, -13.33], [10.01, -19.29, 10.01, -25.36, 13.01, -19.29], [25.04, -1.3, 25.04, -13.33, 30.91, -1.3], [28.02, 16.63, 28.02, 7.69, 31.02, 7.75], [30.99, 7.63, 30.99, -1.31, 33.99, -1.24], [24.89, 22.65, 24.89, 16.6, 27.89, 16.66], [21.88, 25.54, 21.88, 22.54, 24.88, 22.54], [18.88, 28.57, 18.88, 25.57, 21.88, 25.57], [12.96, 31.65, 12.96, 28.65, 18.89, 28.65], [-13.98, 28.67, -13.98, 25.67, 13.02, 25.67, 13.02, 28.65], [-19.92, 31.65, -19.92, 28.65, -13.99, 28.65], [-19.91, 28.68, -22.93, 25.68, -20.01, 25.68], [-22.88, 25.59, -25.9, 13.69, -22.98, 13.69], [-25.67, 13.66, -28.68, -7.34, -25.77, -7.34], [-26.03, 4.61, -25.93, 1.59, -23.02, 1.59, -22.92, 4.61], [-25.93, -7.32, -23.02, -19.25, -22.92, -7.3], [-22.86, -19.31, -19.94, -22.33, -19.85, -19.29], [-19.91, -22.38, -13.86, -25.4, -13.76, -22.36], [-9.61, -4.14, 2.42, -4.24, 2.52, 1.8, -9.61, 1.78], [-6.5, -7.25, -0.5, -7.17, -0.51, 4.77, -6.55, 4.72]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "tree1", "p": { "x": -15.14, "y": 0, "z": -16.22 }, "e": 0, "s": 1 }, { "n": "tree3", "p": { "x": 7.64, "y": 0, "z": -9.09 }, "e": 0, "s": 1 }, { "n": "tree3", "p": { "x": -15.28, "y": 0, "z": 12.85 }, "e": 0, "s": 1 }, { "n": "woodenBox", "p": { "x": 4.01, "y": 0, "z": 8.59 }, "e": 0, "s": 1 }], "scope": { "xMin": -28.68, "xMax": 33.99, "zMin": -31.65, "zMax": 31.33 } },
            map4: { name: "map4", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": -5.27, "y": 0, "z": -1.28 }, { "x": 4.1, "y": 0, "z": 1.95 }], "enemyPos": [{ "x": -7.47, "y": 0, "z": 7.21 }, { "x": 6.19, "y": 0, "z": 9.29 }, { "x": -9.79, "y": 0, "z": 1.56 }, { "x": -3.83, "y": 0, "z": 2.68 }, { "x": 1.81, "y": 0, "z": 4.83 }, { "x": 7.72, "y": 0, "z": 1.24 }, { "x": -9.84, "y": 0, "z": -3.26 }, { "x": -4.05, "y": 0, "z": -4.89 }, { "x": 2.11, "y": 0, "z": -5.41 }, { "x": 8.68, "y": 0, "z": -8.87 }], "collider": [[1.51, -15.76, 1.49, -12.79, -12.75, -12.79, -12.75, -15.86], [8.33, -18.28, 8.29, -16.03, 1.47, -15.71], [9.73, -11.29, 11.24, -11.28, 9.73, -14.29], [8.31, -14.27, 9.82, -14.26, 8.31, -17.27], [11.17, -8.29, 12.68, -8.28, 11.17, -11.29], [12.73, -6.79, 14.24, -6.78, 12.73, -9.79], [14.21, 11.25, 15.72, 11.27, 14.21, -6.8], [12.73, 12.73, 14.24, 11.23, 12.73, 11.27], [11.23, 14.24, 12.74, 12.74, 11.23, 12.78], [-12.48, 15.69, 11.24, 14.19, -12.79, 14.23], [-16.17, 12.54, -12.77, 14.23, -12.79, -12.81], [-6.04, 8.92, -6.06, 11.98, -11.99, 11.91, -11.98, 9], [-7.57, 7.43, -7.52, 13.43, -10.5, 13.53, -10.48, 7.51]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "tree1", "p": { "x": 8.99, "y": 0, "z": -3.19 }, "e": 0, "s": 1 }, { "n": "tree3", "p": { "x": 5.53, "y": 0, "z": 7.26 }, "e": 0, "s": 1 }], "scope": { "xMin": -16.17, "xMax": 15.72, "zMin": -15.76, "zMax": 18.28 } },
            map5: { name: "map5", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": 5.52, "y": 0, "z": 0.51 }, { "x": -6.08, "y": 0, "z": 10.45 }], "enemyPos": [{ "x": -7.47, "y": 0, "z": 7.21 }, { "x": -1.82, "y": 0, "z": 10.67 }, { "x": 7.6, "y": 0, "z": 5.07 }, { "x": -3.87, "y": 0, "z": 1.96 }, { "x": 2, "y": 0, "z": 3.92 }, { "x": -3.56, "y": 0, "z": -4.84 }, { "x": 1.33, "y": 0, "z": -1.46 }, { "x": 6.18, "y": 0, "z": -4.97 }, { "x": 0.04, "y": 0, "z": -6.8 }, { "x": 1.93, "y": 0, "z": -9.7 }, { "x": 8.34, "y": 0, "z": -14.95 }, { "x": 12.39, "y": 0, "z": -8.87 }, { "x": -8.61, "y": 0, "z": -9.44 }, { "x": -11.25, "y": 0, "z": 3.46 }, { "x": -14.63, "y": 0, "z": -13.36 }, { "x": 8.61, "y": 0, "z": 10.82 }, { "x": -1.41, "y": 0, "z": -14.44 }, { "x": -12.98, "y": 0, "z": 10.67 }], "collider": [[-6.79, -20, 8.98, -20, -6.73, -22.77], [9.32, -17.99, 11.21, -17.99, 9.38, -20.03], [11.08, -13.92, 12.98, -13.92, 11.14, -17.8], [13.12, -9.98, 15.02, -9.98, 13.18, -13.85], [15.13, -8, 17.02, -8, 15.19, -11.88], [17.07, 16.05, 18.96, 16.05, 17.13, -7.84], [15.13, 17.98, 17.02, 15.99, 15.19, 16.16], [13.09, 19.89, 14.98, 17.91, 13.15, 18.08], [3.15, 21.75, 13.09, 19.77, 3.21, 19.93], [-12.92, 19.71, 2.89, 19.95, 2.89, 17.73, -12.86, 17.89], [-19.06, 21.71, -12.94, 19.73, -19, 19.89], [-19.04, 19.94, -18.93, -11.88, -24.25, 13.96], [-18.79, -11.92, -16.9, -11.92, -16.92, -13.96], [-16.8, -14.06, -14.91, -14.06, -14.93, -16.09], [-14.87, -16, -10.93, -16, -10.95, -18.04], [-10.69, -17.95, -6.76, -17.95, -6.78, -19.98], [-8.89, 17.93, -4.95, 18.17, -4.91, 15.95, -8.83, 16.12]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "tree2", "p": { "x": -7.81, "y": 0, "z": -2.64 }, "e": 0, "s": 1 }, { "n": "tree2", "p": { "x": 2.83, "y": 0, "z": 8.14 }, "e": 0, "s": 1 }, { "n": "tree2", "p": { "x": 4.06, "y": 0, "z": -12.67 }, "e": 0, "s": 1 }], "scope": { "xMin": -24.25, "xMax": 18.96, "zMin": -21.75, "zMax": 22.77 } },
            map6: { name: "map6", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": -8.25, "y": 0, "z": -0.42 }, { "x": 17.6, "y": 0, "z": 4.78 }], "enemyPos": [{ "x": -0.01, "y": 0, "z": 12.89 }, { "x": -13.03, "y": 0, "z": 11.09 }, { "x": -1.25, "y": 0, "z": 1.84 }, { "x": 12.06, "y": 0, "z": 6.57 }, { "x": 23.77, "y": 0, "z": 7.51 }, { "x": -13.41, "y": 0, "z": -6.38 }, { "x": -3.83, "y": 0, "z": -11.05 }, { "x": 17.99, "y": 0, "z": -9.23 }, { "x": -1.95, "y": 0, "z": -25.19 }, { "x": 11.27, "y": 0, "z": -17.76 }, { "x": 8.66, "y": 0, "z": -5.58 }, { "x": -13.65, "y": 0, "z": -19.75 }, { "x": 5.51, "y": 0, "z": -24.23 }], "collider": [[-26.47, -20.68, 42.14, -10.29, 7.51, -27.04], [33.5, -3.81, 35.4, -1.16, 41.98, -10.21], [24.05, 7.3, 25.83, 9.91, 35.08, -0.9], [23.49, 12.13, 25.27, 14.74, 34.52, 3.93], [-5.58, 37.47, -3.8, 40.08, 25.28, 14.66], [-19.68, 17.78, -22.16, 20.12, -5.61, 37.29], [-25.04, 4.59, -19.68, 17.75, -17.18, 15.66], [-25.59, -8.17, -24.95, 4.72, -19.74, 0.34], [-26.84, -20.6, -28.29, -5.83, -23.07, -10.21]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "ice", "p": { "x": 8.47, "y": 0, "z": -14.09 }, "e": 0, "s": 1 }, { "n": "ice", "p": { "x": 14.65, "y": 0, "z": -0.12 }, "e": 0, "s": 1 }, { "n": "tree4", "p": { "x": -8.21, "y": 0, "z": 6.04 }, "e": 0, "s": 1 }, { "n": "tree5", "p": { "x": -9.99, "y": 0, "z": -12.52 }, "e": 0, "s": 1 }], "scope": { "xMin": -28.29, "xMax": 42.14, "zMin": -40.08, "zMax": 27.04 } },
            map7: { name: "map7", "playerPos": { "x": 0, "y": 0, "z": 0 }, "portalPos": [{ "x": 8.07, "y": 0, "z": -19.32 }, { "x": 10, "y": 0, "z": 6.88 }], "enemyPos": [{ "x": 5.88, "y": 0, "z": 0.39 }, { "x": -7.14, "y": 0, "z": -1.41 }, { "x": 4.64, "y": 0, "z": -10.66 }, { "x": 17.41, "y": 0, "z": 4.39 }, { "x": 29.66, "y": 0, "z": -4.98 }, { "x": -7.52, "y": 0, "z": -18.88 }, { "x": 2.06, "y": 0, "z": -23.55 }, { "x": 23.88, "y": 0, "z": -21.73 }, { "x": 3.94, "y": 0, "z": -37.69 }, { "x": 17.16, "y": 0, "z": -30.25 }, { "x": 14.55, "y": 0, "z": -18.07 }, { "x": -7.76, "y": 0, "z": -32.25 }, { "x": 11.4, "y": 0, "z": -36.73 }, { "x": 25.98, "y": 0, "z": -25.94 }, { "x": 39.25, "y": 0, "z": 6.27 }, { "x": -17.93, "y": 0, "z": 8.85 }], "collider": [[-29.84, -15.58, 65.04, -16.42, 4.2, -27.57], [49.78, -6.35, 52.81, -3.46, 59.04, -15.77], [40.24, 9.82, 43.27, 12.53, 52.52, -3.3], [40.34, 16.21, 43.97, 19.29, 43.26, 12.77], [8.75, 54.04, 10.85, 56.4, 43.02, 19.46], [-13.24, 32.52, -15.39, 35.17, 8.66, 54], [-22.94, 16.92, -13.28, 32.48, -10.1, 29.21], [-26.59, 1.04, -22.83, 16.83, -16.9, 10.3], [-30.21, -15.17, -26.33, 0.77, -23.7, -2.38]], "staticBarriers": [], "dynamicBarriers": [], "breakBarriers": [{ "n": "tree1", "p": { "x": -4.68, "y": 0, "z": -7.62 }, "e": 0, "s": 1 }, { "n": "tree1", "p": { "x": 21.12, "y": 0, "z": -6.04 }, "e": 0, "s": 1 }, { "n": "tree3", "p": { "x": 9.36, "y": 0, "z": -41.13 }, "e": 0, "s": 1 }], "scope": { "xMin": -30.21, "xMax": 65.04, "zMin": -56.4, "zMax": 27.57 } },
        }
    }
}
